package com.ruoyi.issue.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.issue.mapper.IssueMapper;
import com.ruoyi.issue.domain.Issue;
import com.ruoyi.issue.service.IIssueService;

/**
 * 问题Service业务层处理
 * 
 * @author dxl
 * @date 2025-01-09
 */
@Service
public class IssueServiceImpl implements IIssueService 
{
    @Autowired
    private IssueMapper issueMapper;

    /**
     * 查询问题
     * 
     * @param issueId 问题主键
     * @return 问题
     */
    @Override
    public Issue selectIssueByIssueId(Long issueId)
    {
        return issueMapper.selectIssueByIssueId(issueId);
    }

    /**
     * 查询问题列表
     * 
     * @param issue 问题
     * @return 问题
     */
    @Override
    public List<Issue> selectIssueList(Issue issue)
    {
        return issueMapper.selectIssueList(issue);
    }

    /**
     * 新增问题
     * 
     * @param issue 问题
     * @return 结果
     */
    @Override
    public int insertIssue(Issue issue)
    {
        return issueMapper.insertIssue(issue);
    }

    /**
     * 修改问题
     * 
     * @param issue 问题
     * @return 结果
     */
    @Override
    public int updateIssue(Issue issue)
    {
        return issueMapper.updateIssue(issue);
    }

    /**
     * 批量删除问题
     * 
     * @param issueIds 需要删除的问题主键
     * @return 结果
     */
    @Override
    public int deleteIssueByIssueIds(Long[] issueIds)
    {
        return issueMapper.deleteIssueByIssueIds(issueIds);
    }

    /**
     * 删除问题信息
     * 
     * @param issueId 问题主键
     * @return 结果
     */
    @Override
    public int deleteIssueByIssueId(Long issueId)
    {
        return issueMapper.deleteIssueByIssueId(issueId);
    }
}
